<link href="/statics/front/css/cart.css" rel="stylesheet">
</head>
<body>
<div id="cart">
  <div class="callback">
    <?php if(isset($message) && $message): ?>
    <h3 class="callback-title align-center"><?php echo $message; ?></h3>
    <?php endif; ?>
    <table width="100%" align="center" cellspacing="0" cellpadding="0" class="callback-list">
      <tbody>
        <?php if (isset($orderInfo)): ?>
        <tr>
          <td width="30%" align="right" class="referral"><?php echo L('ordersn')?>:</td>
          <td width="70%"><?php echo isset($orderInfo['order_sn'])? $orderInfo['order_sn'] : null;?> </td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('shipping_method')?>:</td>
          <td><?php echo isset($orderInfo['shipping_method_name'])? $orderInfo['shipping_method_name'] : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('payment_method')?>:</td>
          <td><?php echo isset($orderInfo['payment_method_name']) ? $orderInfo['payment_method_name'] : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('order_create_time')?>:</td>
          <td><?php echo isset($orderInfo['start_time'])? date('F d, Y H:i:s',$orderInfo['start_time']) : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('order_confirm_time')?>:</td>
          <td><?php echo isset($orderInfo['confirm_time'])? date('F d, Y H:i:s',$orderInfo['confirm_time']) : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('order_pay_time')?>:</td>
          <td><?php echo isset($orderInfo['payment_time'])? date('F d, Y H:i:s',$orderInfo['payment_time']) : null;?></td>
        </tr>
        <tr>
          <td align="right" class="referral"><?php echo L('paid_amount')?>:</td>
          <td style="color:#f00;"><?php echo isset($orderInfo['pay_amount']) ? currency($orderInfo['pay_amount']) : null?></td>
        </tr>
        <?php endif;?>
        <tr>
          <td align="center" class="referral" colspan="2">
              <b id="wait"><?php echo($wait); ?></b> <?php echo L('_second_')?> <a id="href" href="<?php echo($jumpUrl); ?>"><?php echo L('automatic_jump')?></a>
          </td>
        </tr>
        
      </tbody>
    </table>
    <?php if($orderInfo['order_sn']): ?>
    <img src="https://shareasale.com/sale.cfm?amount=<?php echo isset($orderInfo['pay_amount']) ?>&tracking=<?php echo isset($orderInfo['order_sn']) ?>&transtype=TYPEOFTRANSACTION&merchantID=55810" width="1" height="1">
    <img src="https://track.linksynergy.com/ep?mid=39950&ord=<?php echo $orderInfo['order_sn'];?>&skulist=<?php echo $buttJoint['skulist'];?>&qlist=<?php echo $buttJoint['qlist'];?>&amtlist=<?php echo $buttJoint['amtlist'];?>&cur=<?php echo $buttJoint['currency'];?>&img=1">
    <?php endif; ?>
  </div>
</div>

<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
  var time = --wait.innerHTML;
  if(time <= 0) {
    top.location.href = href;
    clearInterval(interval);
  }
}, 1000);
})();
</script>
<?php
include TPL_PATH.'public/after_body.phtml';